﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace LoginSystem
{
    public partial class Mainform : Form
    {

        public Mainform()
        {
            InitializeComponent();
        }

        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {

           





        }

        private void Mainform_Load(object sender, EventArgs e)
        {
            //导入数据库信息
            var sql = "select * from Results";
           var dt= Orage.GetDataTable(sql);//使用类里面的输出Sql数据的方法
            dataGridView1.DataSource = dt;


        }

        private void LogOutButton_Click(object sender, EventArgs e)
        {
            Form1 form1 = new Form1();
            form1.Show();//打开登录界面
            this.Close();//关闭当前界面
        }
    }
}
